$OpenBSD: patch-tkrat_Makefile_in,v 1.2 2012/08/22 05:17:33 stu Exp $
--- tkrat/Makefile.in.orig	Mon Feb  4 15:35:10 2002
+++ tkrat/Makefile.in	Sat May  5 03:28:09 2012
@@ -67,10 +67,6 @@ install.shared: ${INDEX} ${INDEXSRC}
 	do \
 	    ${INSTALL} -m 0644 $$i ${INSTALL_PREFIX}${DATA_DIR} ;\
 	done
-	cd ${INSTALL_PREFIX}${DATA_DIR}; \
-		echo "if [catch {pkg_mkIndex -verbose . *.tcl} \
-			error] \
-		  {outs \$$error; exit 1}" | ${TCLSH}
 
 install: install.shared install.data
 
@@ -89,10 +85,7 @@ tkrat.install: Makefile
 	echo "set env(COMPRESS) ${COMPRESS}" >>$@
 	echo "set env(CSUFFIX) ${CSUFFIX}" >>$@
 	echo "set env(SSH) \"${SSH}\"" >>$@
-	echo "foreach dir {${DATA_DIR}/util ${LIB_DIR}} {" >>$@
-	echo '    source $$dir/pkgIndex.tcl' >>$@
-	echo "}" >>$@
-	echo "set auto_path [concat ${DATA_DIR} \$$auto_path]" >>$@
+	echo "lappend auto_path ${LIB_DIR} ${DATA_DIR}" >>$@
 	echo "TkRatClientStart" >>$@
 
 backup:
